package ModelLayer;

import java.util.ArrayList;

public class Employee extends Person 
{
	private String jobType;
	private ArrayList<SalesOrder> salesOrder;

	//Constructor which returns the superclass values
	public Employee()
	{
		super("","",0,"",0,"");
	}
	
	//Constructor which takes; name, adress, zipcode, city, phonenumber, email and jobtype as a parameter
	public Employee(String name, String adress, int zipCode, String city, int phoneNumber, String email, String jobType)

	{
		super(name, adress, zipCode, city, phoneNumber, email);
		
		this.jobType = jobType;
	}
	
	//Constructor which takes; name, adress, zipcode, phonenumber, email and jobtype as a parameter
	public Employee(String name, String adress, int zipCode, int phoneNumber, String email, String jobType)

	{
		super(name, adress, zipCode, phoneNumber, email);
		
		this.jobType = jobType;
	}

	//Returns jobtype
	public String getJobType()
	{
		return jobType;
	}

	//Sets the jobtype
	public void setJobType(String jobType) 
	{
		this.jobType = jobType;
	}

	//Returns All sales on the employee
	public ArrayList<SalesOrder> getSalesOrder() 
	{
		return salesOrder;
	}

	//Adds a Sales Order 
	public void addSalesOrder(ArrayList<SalesOrder> findAllSalesOrdersOnEmployee) 
	{
		this.salesOrder = findAllSalesOrdersOnEmployee;
	}
}
